# 钟奕升
def jiecheng():
    num = 1
    s = int(input("输入一个数"))
    for i in range(1, s+1):
        num *= i
    print(num)
while 1:
    jiecheng()